package com.ebupt.migu.music.propagate.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ebupt.migu.propagate.PropagateInfo;

import java.util.List;

/**
 *  宣发彩铃信息
 * @author tz
 */
@DS("mysql_mg")
public interface PropagateInfoMapper extends BaseMapper<PropagateInfo> {
    /**
     *  根据策略id查
     * @param strategyId
     * @return
     */
    default List<PropagateInfo> qryByStrategyId(String strategyId){
        return this.selectList(new QueryWrapper<PropagateInfo>().lambda().
                eq(PropagateInfo::getStrategyId,strategyId));
    }
}
